/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_18;

import java.io.Serializable;

/**
 *
 * @author Administrator
 */
public abstract class Enum <E extends Enum<E>> implements Comparable<E>, Serializable{
    
//    public final int comparaeTo(E o){
//     
//        Enum other = (Enum) o;
//        Enum self = this;
//        if (self.getClass() != other.getClass() && self.getDeclaringClass() != other.getDeclaringClass()) {
//            throw new ClassCastException();
//        }
//        return self.ordinal - other.ordinal;
//    }
}
